package com.example.springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 验证过滤器Controller
 * <p>
 * @author Zhang.Z
 * @version 2025-09-20
 */
@RestController
public class FilterController {

    /**
     * 公共请求
     */
    @RequestMapping(value = "/common/test")
    public String common() {
        System.out.println("common request in ... opt ...");
        return "common request. ";
    }


    /**
     * 私有请求(需认证、权限等)
     */
    @RequestMapping(value = "/private/test")
    public String privateReq() {
        System.out.println("private request in, welcome ...");
        return "private request. ";
    }

}
